package chpn.test.rowset.proxy;

import java.math.BigDecimal;
import java.sql.ResultSetMetaData;
import java.sql.SQLException;
import java.sql.Timestamp;
/**
 * java.sql.RowSet 中部分接口
 * @author Administrator
 *
 */
public interface SimpleRowSet {

	ResultSetMetaData getMetaData() throws SQLException;
	void setObject(int index , Object value ) throws SQLException;
	void setObject(String fieldName, Object value) throws SQLException;
	void beforeFirst() throws SQLException;
	public boolean next() throws SQLException;
	boolean first() throws SQLException;
	
	
	public String getString(int index) throws SQLException;
	public String getString(String key) throws SQLException;


	Object getObject(String key) throws SQLException;
	Object getObject(int index) throws SQLException;
	int getInt(int index) throws SQLException;
	int getInt(String key) throws SQLException;
	long getLong(int index) throws SQLException;
	long getLong(String key) throws SQLException;
	float getFloat(String key) throws SQLException;
	float getFloat(int index) throws SQLException;
	BigDecimal getBigDecimal(int index) throws SQLException;
	BigDecimal getBigDecimal(String key) throws SQLException;
	double getDouble(int index) throws SQLException;
	double getDouble(String key) throws SQLException;
	boolean getBoolean(int index) throws SQLException;
	boolean getBoolean(String key) throws SQLException;
	byte getByte(int index) throws SQLException;
	byte getByte(String key) throws SQLException;
//	byte[] getBytes(int index) throws SQLException;
//	byte[] getBytes(String key) throws SQLException;
	//Date getDate(String key) throws SQLException;
	//Date getDate(int index) throws SQLException;
	//Date getDate(int index, Calendar arg1) throws SQLException;
	//Date getDate(String key, Calendar arg1) throws SQLException;
	//Blob getBlob(String key) throws SQLException;
	//Time getTime(String fieldName, Calendar arg1) throws SQLException;
	Timestamp getTimestamp(int index) throws SQLException;
	Timestamp getTimestamp(String fieldName) throws SQLException;
	//Timestamp getTimestamp(int index, Calendar arg1) throws SQLException;
	//Timestamp getTimestamp(String fieldName, Calendar arg1) throws SQLException;
	//Time getTime(int index) throws SQLException;
	//Time getTime(String fieldName) throws SQLException;
	//Time getTime(int index, Calendar arg1) throws SQLException;

}
